@extends('layout.admin.master')
@section('content')
        <div class="card">
            <div class="card-body">
                <ul class="nav nav-tabs nav-tabs-sm">
                    <li class="nav-item">
                        <a href="{{route('permission.permission.index')}}" class="nav-link active">
                            权限列表列表
                        </a>
                    </li>
                </ul>
                @foreach($modules as $module)
                <div class="card">
                    <div class="card-header">
                        {{$module->cname}}
                    </div>
                    <div class="card-body">
                        <div class="row">
                            @foreach($module->permissions as $permission)
                            <div class="col-3">
                             <strong>{{$permission['cname']}}</strong>  | <span class="info">{{$permission['name']}}</span>
                            </div>
                                @endforeach
                        </div>
                    </div>
                </div>
                    @endforeach
            </div>
        </div>
    </form>
@endsection
